/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.project.service.quotedprice;

import java.util.List;

import com.thinkgem.jeesite.common.service.ActAuditService;
import com.thinkgem.jeesite.modules.act.service.ActTaskService;
import com.thinkgem.jeesite.modules.act.utils.ActUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.project.entity.quotedprice.ProjectQuotedPrice;
import com.thinkgem.jeesite.modules.project.dao.quotedprice.ProjectQuotedPriceDao;

/**
 * 工程报价记录Service
 * @author xiaoming
 * @version 2020-02-16
 */
@Service
@Transactional(readOnly = true)
public class ProjectQuotedPriceService extends ActAuditService<ProjectQuotedPriceDao, ProjectQuotedPrice> {

	@Autowired
	private ActTaskService actTaskService;
	public ProjectQuotedPrice get(String id) {
		return super.get(id);
	}
	
	public List<ProjectQuotedPrice> findList(ProjectQuotedPrice projectQuotedPrice) {
		return super.findList(projectQuotedPrice);
	}
	
	public Page<ProjectQuotedPrice> findPage(Page<ProjectQuotedPrice> page, ProjectQuotedPrice projectQuotedPrice) {
		return super.findPage(page, projectQuotedPrice);
	}
	
	@Transactional(readOnly = false)
	public void save(ProjectQuotedPrice projectQuotedPrice) {
		super.save(projectQuotedPrice);
		actTaskService.startProcess(ActUtils.TP_TEACH_SUBJECT[0], ActUtils.TP_TEACH_SUBJECT[1], projectQuotedPrice.getId(), projectQuotedPrice.getProjectName());
	}
	
	@Transactional(readOnly = false)
	public void delete(ProjectQuotedPrice projectQuotedPrice) {
		super.delete(projectQuotedPrice);
	}
	
}